package com.home.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.home.service.UserService;
import com.home.service.Impl.UserServiceImpl;

@Controller
@RequestMapping("/")
public class UserController {

	@Autowired  
    private UserServiceImpl userService;  
      
    @RequestMapping(value="/getUserList",produces="text/html;charset=UTF-8" )   
    @ResponseBody  
    private String getOtherList(){  
        String json=userService.getUserList();  
        return json;  
    }
}
